package com.example.dicos.entity.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @description:
 * @author: 朱超
 * @createDate: 2022/7/15
 * @version: 1.0
 * @remark：计算工时总和
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class HostVo {
    @ApiModelProperty(value = "工时")
    private BigDecimal host;

    @ApiModelProperty(value = "创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date creationTime;
}
